package day05;

import java.util.Scanner;

public class Addition {
    public static void main(String[] args) {
        /*Scanner scan = new Scanner(System.in);
        int score = 0;//计算分数
        System.out.println("来开始答题吧");
        for (int i = 1; i <= 10; i++) {//循环用于决定题量
            int i1 = (int) (Math.random() * 100 - 1);//第一个随机数
            int i2 = (int) (Math.random() * 100 - 1);//第二个随机数
            System.out.println("第" + i + "题" + ":" + " " + i1 + "+" + i2 + "=" + "?");
            int result = i1 + i2;//声明一个变量用于保存两个随机数的结果
            int answer = scan.nextInt();//用户输入的结果
            if (result == answer) {//判断结果是否正确
                System.out.println("恭喜你答对了");
                score += 10;
            } else {
                System.out.println("不好意思答错了哦");
            }

        }
        System.out.println("总分是" + score);//输出总分*/
        int i = 0;
        for (; i < 100; i++) {
            if (i == 50) {

                break;
            }
            System.out.println(i);
        }



    }
}
//